package com.lnking.lnkingplace.model.dto.inspect;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lnking.lnkingplace.model.dto.rectification.RectificationResultDto;
import com.lnking.lnkingplace.model.entity.InspectResult;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 联坤
 */
@Data
public class InspectToPlaceDto {

    @ApiModelProperty(value = "方案id")
    private String inspectId;

    @ApiModelProperty(value = "场所名称")
    private String placeId;

    @ApiModelProperty(value = "场所类型")
    private String placeType;

    @ApiModelProperty(value = "场所名称")
    private String placeName;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "经纬度")
    private Float lngitude;

    @ApiModelProperty(value = "经纬度")
    private Float latitude;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "检查时间")
    private LocalDateTime inspectTime;

    @ApiModelProperty(value = "检查人名字")
    private String inspectPersonName;


    @ApiModelProperty(value = "检查结果")
    private String inspectResult;

    @ApiModelProperty(value = "状况")
    private String status;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "复查场所确认时间")
    private LocalDateTime confirmTime;

    @ApiModelProperty(value = "确认人")
    private String confirmUser;


    @ApiModelProperty(value = "检查结果")
    private List<InspectResult> inspectResultList;

    @ApiModelProperty(value = "整体情况")
    private List<RectificationResultDto> rectificationResultDtoList;


}
